package com.handycraftz.site.client.presenter;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasWidgets;
import com.handycraftz.site.client.rpc.HandyCraftzService;
import com.handycraftz.site.client.rpc.HandyCraftzServiceAsync;
import com.handycraftz.site.client.ui.ContentView;

public class ContentPresenter extends Presenter {

	HandyCraftzServiceAsync rpcService;

	ContentView view;

	public ContentPresenter(HandlerManager eventBus) {
		super(eventBus);
		this.view = new ContentView();
		this.rpcService = GWT.create(HandyCraftzService.class);
	}

	@Override
	public void go(HasWidgets container) {
	}

	@Override
	public void fill(HasWidgets container, HasWidgets dummy) {
		super.fill(container, dummy);

		container.add(view.asWidget());

		// has to be changed in a dynamic manner
		HTML h = new HTML();
		h.setHTML("<div style=\"height:370px\"></div>");
		dummy.add(h);

	}

}
